#!/bin/bash

# Jon Haynes 29 June 2010

# Script to pre-populate/back-date the commits database if you are installing tokkotai 
# in an existing repository which already has a lot of commits in it.

# Path to perl
PERL=/usr/bin/perl

# Path to your svn commit2db.pl with correct db settings
SCRIPT=/path/to/hooks/commit2db.pl

# Path to your svn repository
REPOS=/path/to/svn/repos

# Revision to start at
REV=1

# Set your maximum revision in the repository below
while [ $REV -le 461 ]; do
	echo "Revision $REV"
	$PERL $SCRIPT $REPOS $REV
	let REV=REV+1
done
